#box{
    width: 654px;
    height: 446px;
    background-color: seagreen;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url(../image/bg.png) no-repeat center;
}

#toolbar{
    width: 654px;
    height: 36px;
    color: white;
    padding-top: 5px;
    position: absolute;
    bottom: 0;
    font-size: 16px;
    font-weight: bold;
    background: url(../image/toolbar1.png) no-repeat center;
    box-sizing: border-box;
}

#toolbar div{
    float: left;
}

#gamescore{
    margin-left: 50px;
}

#gametime{
    margin-left: 240px;
}

#buttons{
    margin-left: 150px;
}

#buttons button{
    width: 51px;
    height: 23px;
    border: none;
}

#start{
    background: url('../image/start.png') no-repeat center;
    background-size: cover;
}

#pause{
    background: url('../image/pause.png') no-repeat center;
    background-size: cover;
}

#snakeArea{
    width: 600px;
    height: 360px;
    position: relative;
    top: 33px;
    left: 30px;
}


#gameover{
    background: url(../image/gameover.png) no-repeat center;
    background-size: cover;
    width: 350px;
    height: 350px;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.gaming{
    display: none;
}
.over{
    display: block;
}